﻿using System;
using System.Windows.Forms;
using TeamDeployer.TeamFoundation.Build.Workflow.CustomTypes;

namespace TeamDeployer.TeamFoundation.Build.Workflow.Design
{
    public partial class DialogDeploySpec : Form
    {
        private DeploySpec _Spec;

        public DialogDeploySpec()
        {
            InitializeComponent();

            this.Spec = new DeploySpec { Id = Guid.NewGuid() };
        }

        // Properties
        public DeploySpec Spec
        {
            get
            {
                return this._Spec;
            }
            set
            {
                this._Spec = value;
                this.PropertyGrid.SelectedObject = this.Spec;
            }
        }
    }
}